﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Petroleum.UC.Public
{
    public partial class CasingTypeChooseStrength : UserControl
    {
        public CasingTypeChooseStrength()
        {
            InitializeComponent();
        }
        private void txtBitSize_KeyDown(object sender, KeyEventArgs e)
        {
            try
            {
                lblTotal.Text = (double.Parse(ucTextBoxEx5.InputText) * 1.488154 * double.Parse(lbllength.Text)).ToString();
                lblInterval.Text = Math.Round(decimal.Parse(lblTotal.Text), 2).ToString();
            }
            catch (Exception ex)
            {

            }
        }
    }
}
